﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类RESULT_IMAGE
     ///</summary>
     public class RESULT_IMAGE
     {
         private int __ID=0 ;
         private string __JCLSH=string.Empty ;
         private string __Lamp_Image=string.Empty ;
         private string __Brake_Image=string.Empty ;
         private string __Power_Image=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public RESULT_IMAGE()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("JCLSH",false);
             this.__Changed.Add("Lamp_Image",false);
             this.__Changed.Add("Brake_Image",false);
             this.__Changed.Add("Power_Image",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__JCLSH =string.Empty;
             this.__Lamp_Image =string.Empty;
             this.__Brake_Image =string.Empty;
             this.__Power_Image =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["JCLSH"] = false;
             this.__Changed["Lamp_Image"] = false;
             this.__Changed["Brake_Image"] = false;
             this.__Changed["Power_Image"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCLSH]的数据
         /// </summary>
         public string JCLSH
         {
              set{ __JCLSH = value.Replace("'","’"); __Changed["JCLSH"] = true;}
              get{return __JCLSH;}
         }
         /// <summary>
         ///设置或获取类中的[Lamp_Image]的数据
         /// </summary>
         public string Lamp_Image
         {
              set{ __Lamp_Image = value.Replace("'","’"); __Changed["Lamp_Image"] = true;}
              get{return __Lamp_Image;}
         }
         /// <summary>
         ///设置或获取类中的[Brake_Image]的数据
         /// </summary>
         public string Brake_Image
         {
              set{ __Brake_Image = value.Replace("'","’"); __Changed["Brake_Image"] = true;}
              get{return __Brake_Image;}
         }
         /// <summary>
         ///设置或获取类中的[Power_Image]的数据
         /// </summary>
         public string Power_Image
         {
              set{ __Power_Image = value.Replace("'","’"); __Changed["Power_Image"] = true;}
              get{return __Power_Image;}
         }
    }
}
